package GUI;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.ImageIcon;

import java.awt.Font;
import java.awt.Color;

import javax.swing.SwingConstants;

import clientes.Cliente;
import mapa.Coordenada;
import mapa.Direccion;
import odpgl.Implementacion;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

import javax.swing.JTextField;
import javax.swing.border.BevelBorder;

import java.awt.SystemColor;

public class panelABMEmpleados extends JDialog 
{
	
	public Implementacion pedidosGeoLoc = new Implementacion();
	public JPanel panel;
	private final JLabel fondo = new JLabel("");

	
	
	
	public static void main(String[] args) {
		try {
			panelABMEmpleados dialog = new panelABMEmpleados();
			dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			dialog.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the dialog.
	 */
	public panelABMEmpleados() 
	{
		setBounds(200, 50,901,600);
		getContentPane().setLayout(null);
		

		
			
		
			
		JButton btnBuscar = new JButton("");
		btnBuscar.setIcon(new ImageIcon("Imagenes/buscar.jpg"));
		btnBuscar.setBounds(285, 100, 120, 120);
		btnBuscar.setFont(new Font("Arial", Font.BOLD | Font.ITALIC, 12));
		getContentPane().add(btnBuscar);
		btnBuscar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) 
			{
				buscarEmpleados ventanaBuscar = new buscarEmpleados();
				ventanaBuscar.setVisible(true);
				
			}
		});
		
		
		
		
		

		
		JLabel Titulo = new JLabel("Gestión de empleados");
		Titulo.setBounds(161, 13, 537, 60);
		Titulo.setHorizontalAlignment(SwingConstants.CENTER);
		Titulo.setForeground(Color.WHITE);
		Titulo.setFont(new Font("Arial", Font.BOLD | Font.ITALIC, 35));
		getContentPane().add(Titulo);
		

		
		
				
		
		
		
		
		JButton btnAgregar = new JButton("");
		btnAgregar.setIcon(new ImageIcon("Imagenes/agregar.jpg"));
		btnAgregar.setBounds(85, 100, 120, 120);
		btnAgregar.setFont(new Font("Arial", Font.BOLD | Font.ITALIC, 12));
		getContentPane().add(btnAgregar);
		
		JButton borrar = new JButton("");
		borrar.setIcon(new ImageIcon("Imagenes/borrar.jpg"));
		borrar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				
				buscarEmpleados ventanaBuscar = new buscarEmpleados();
				ventanaBuscar.setVisible(true);
			}
		});
		borrar.setFont(new Font("Arial", Font.BOLD | Font.ITALIC, 12));
		borrar.setBounds(485, 100, 120, 120);
		getContentPane().add(borrar);
		
		JButton editar = new JButton("");
		editar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) 
			{
				buscarEmpleados ventanaBuscar = new buscarEmpleados();
				ventanaBuscar.setVisible(true);
			}
		});
		editar.setIcon(new ImageIcon("Imagenes/editar.png"));
		editar.setFont(new Font("Arial", Font.BOLD | Font.ITALIC, 12));
		editar.setBounds(685, 100, 120, 120);
		getContentPane().add(editar);
		
		JButton btnVolver = new JButton("Volver");
		btnVolver.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				dispose();
			}
		});
		btnVolver.setBounds(401, 299, 117, 25);
		getContentPane().add(btnVolver);
		fondo.setIcon(new ImageIcon("Imagenes/azulFondo.jpeg"));
		fondo.setBounds(0, 0, 906, 560);
		getContentPane().add(fondo);
		
		btnAgregar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) 
			{
				AgregarEmpleados ventanaAgregar = new AgregarEmpleados();
				ventanaAgregar.setVisible(true);
				
			}
		});
	
		

		
		
	}
	
	

}
